/*
 * @Author: zhang gen yuan
 * @Date: 2021-07-26 10:00:50
 * @Descripttion: 
 */
const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function (app) {
    app.use('/api', createProxyMiddleware(
        {
            target: 'http://192.168.2.17:8011',
            changeOrigin: true,
            pathRewrite: {
                "^/api": ""
            }
        }
    ))
}
